package com.umpay.dto.merAccess.req.refund;

import org.hibernate.validator.constraints.NotEmpty;

import com.umpay.annotation.Pattern;
import com.umpay.dto.merAccess.req.CommonReq;



 /******************************************************************
 * ClassName: TransRefundReq  
 * Function: TODO ADD FUNCTION.
 * Reason: TODO ADD REASON(可选).
 * date: 2018年2月27日 下午2:12:30 
 * @author wangpengbo 
 * @version  
 ******************************************************************/ 
 
public class TransRefundReq extends CommonReq {

	@NotEmpty(message = "商户订单号不能为空")
	@Pattern(message = "商户订单号格式不正确")
	private String order_id; // 商户订单号
	@NotEmpty(message = "商户订单日期不能为空")
	@Pattern(message = "商户订单日期格式不正确")
	private String mer_date; // 商户订单日期
	@NotEmpty(message = "原消费商户订单号不能为空")
	@Pattern(message = "原消费商户订单号格式不正确")
	private String ori_order_id; // 商户唯一订单号
	@NotEmpty(message = "原消费商户订单日期不能为空")
	@Pattern(message = "原消费商户订单日期格式不正确")
	private String ori_mer_date; // 商户订单日期
	@NotEmpty(message = "金额不能为空")
	@Pattern(message = "金额格式不正确")
	private String amount; // 退费金额
	@NotEmpty(message = "退款类型为空")
	@Pattern(message = "退款类型不正确")
	private String refund_type;//退款类型
	@Pattern(message = "退款描述信息格式不正确")
	private String refund_desc; // 退款描述信息
	@Pattern(message = "备注信息格式不正确")
	private String remark; // 备注信息
	@NotEmpty(message = "通知地址为空")
	@Pattern(message = "后台通知地址格式不正确")
	private String notify_url; //  后台通知地址

	@NotEmpty(message = "商户原流水为空")
	@Pattern(message = "商户原流水格式不正确")
	private String ori_mer_trace;

	public String getOrder_id() {
		return order_id;
	}
	public void setOrder_id(String order_id) {
		this.order_id = order_id;
	}
	public String getMer_date() {
		return mer_date;
	}
	public void setMer_date(String mer_date) {
		this.mer_date = mer_date;
	}
	public String getOri_order_id() {
		return ori_order_id;
	}
	public void setOri_order_id(String ori_order_id) {
		this.ori_order_id = ori_order_id;
	}
	public String getOri_mer_date() {
		return ori_mer_date;
	}
	public void setOri_mer_date(String ori_mer_date) {
		this.ori_mer_date = ori_mer_date;
	}
	public String getAmount() {
		return amount;
	}
	public void setAmount(String amount) {
		this.amount = amount;
	}
	public String getRefund_type() {
		return refund_type;
	}
	public void setRefund_type(String refund_type) {
		this.refund_type = refund_type;
	}
	public String getRefund_desc() {
		return refund_desc;
	}
	public void setRefund_desc(String refund_desc) {
		this.refund_desc = refund_desc;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public String getNotify_url() {
		return notify_url;
	}
	public void setNotify_url(String notify_url) {
		this.notify_url = notify_url;
	}

	public String getOri_mer_trace() {
		return ori_mer_trace;
	}
	public void setOri_mer_trace(String ori_mer_trace) {
		this.ori_mer_trace = ori_mer_trace;
	}
	@Override
	public String toString() {
		return "TransRefundReq [order_id=" + order_id + ", mer_date=" + mer_date + ", ori_order_id=" + ori_order_id
				+ ", ori_mer_date=" + ori_mer_date + ", amount=" + amount + ", refund_type=" + refund_type
				+ ", refund_desc=" + refund_desc + ", remark=" + remark + ", notify_url=" + notify_url
				+ ", ori_mer_trace=" + ori_mer_trace + "]";
	}

}
